package com.ftg.learn.chapter02.service;

import com.ftg.learn.chapter02.dao.UserDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 你也想把这个成为一组件: 业务模型层组件
 * 一定业务逻辑处理
 * @author kangjx
 * @date 2022/11/2
 */
@Service
public class UserService {

    @Resource
    UserDao userDao;

    public void test1(){
        System.out.println(userDao.test1());
    }

}
